import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';

export class LoginUserDto {
  @IsNotEmpty({ message: '用户id不能为空' })
  @ApiProperty({ description: '用户名', required: false, default: 'admin' })
  readonly username: string;

  @IsNotEmpty({ message: '摩玛不能为空' })
  @ApiProperty({ description: '密码', required: false, default: '111111' })
  readonly password: string;
}
